/*
* Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.builder;

import java.util.ArrayList;
import java.util.List;

/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/12/18 14:33
 * Update Date Time:
 */

public class Product {

    List<String> parts = new ArrayList<>();
    /**
     * Description: 添加产品部件
     * @param  part 部件
     * @author QinXueFeng
     * Create Date Time: 2018/12/18 14:38
     * Update Date Time:
     */
    public void add(String part){
        parts.add(part);
    }
    /**
     * Description: 列出产品部件
     * @author QinXueFeng
     * Create Date Time: 2018/12/18 14:37
     * Update Date Time:
     */
    public void show(){
        System.out.println("---产品创建---");
        for (String part:parts){
            System.out.println(part);
        }
    }
}
